<form action="{:sysuri()}" data-table-id="FormTable" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">
        <div class="layui-form-item label-required-prev">
            <span class="help-label"><b>绑定电商平台</b>Plat Parent</span>
            <select class='layui-select' name='plat_id' lay-search lay-verify="required">
                <option value="">请选择电商平台</option>
                {foreach $plats as $plat}{eq name='plat.id' value='$vo.plat_id|default=0'}
                <option selected value='{$plat.id}'>{$plat.plat_name}--{$plat.plat_desc}</option>
                {else}
                <option value='{$plat.id}'>{$plat.plat_name}--{$plat.plat_desc}</option>
                {/eq}{/foreach}
            </select>
            <span class="help-block"><b>必选，</b>请选择电商平台。</span>
        </div>
        <div class="layui-form-item label-required-prev">
            <span class="help-label"><b>绑定分类类目</b>Category Parent</span>
            <select class='layui-select' name='cat_id' lay-search lay-verify="required">
                <option value="">请选择绑定分类类目</option>
                {foreach $cates as $cate}{eq name='cate.id' value='$vo.cat_id|default=0'}
                <option selected value='{$cate.id}'>{$cate.name}</option>
                {else}
                <option value='{$cate.id}'>{$cate.name}</option>
                {/eq}{/foreach}
            </select>
            <span class="help-block"><b>必选，</b>请选择绑定分类。</span>
        </div>
        <div class="layui-row layui-col-space15">
            <div class="layui-col-xs8">
                <label class="block relative">
                    <span class="help-label"><b>店铺名称</b>Shop Name</span>
                    <input class="layui-input" name="shop_name" placeholder="请输入店铺名称" required value='{$vo.shop_name|default=""}'>
                </label>
            </div>
            <div class="layui-col-xs4">
                <div class="layui-form-item">
                    <span class="color-green font-w7">店铺类型</span>
                    <span class="color-desc margin-left-5">Shop Type</span>
                    <div class="layui-form-item">
                        <!-- {foreach ['0'=>'自营店铺','1'=>'代理店铺'] as $k=>$v} -->
                            <!--{if (!isset($vo.shop_type) and $k eq '0') or (isset($vo.shop_type) and $vo.shop_type eq $k)}-->
                                <label class="think-radio"><input checked lay-ignore name="shop_type" type="radio" value="{$k}"> {$v}</label>
                            <!--{else}-->
                                <label class="think-radio"><input lay-ignore name="shop_type" type="radio" value="{$k}"> {$v}</label>
                            <!--{/if}-->
                        <!-- {/foreach} -->
                    </div>
                </div>
            </div>
        </div>
        <label class="layui-form-item relative block">
            <span class="help-label"><b>店铺描述</b>Shop Desc</span>
            <textarea class="layui-textarea" name="shop_desc" placeholder="请输入平台描述">{$vo.shop_desc|default=''}</textarea>
        </label>
    </div>
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit' lay-submit>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close type='button' data-confirm="确定要取消编辑吗？">取消编辑</button>
    </div>
</form>